<%@ page language="java" pageEncoding="UTF-8"%><link type="text/css" href="${pageContext.request.contextPath}/js/jquery-ui/css/smoothness/jquery-ui-1.8.20.custom.css?t=${commonAppTimestamp}" rel="stylesheet" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui/js/jquery-ui-1.8.20.custom.min.js?t=${commonAppTimestamp}"></script>
<script type="text/javascript">
<!--//-->//><!--
	$(function() {

	});

	/////////////////////////////////// 
	//指定 jquery.ui.dialog打开时的位置: 在点击位置打开 
	/////////////////////////////////// 
	(function($) {
		var originOpen = $.ui.dialog.prototype.open
		$.ui.dialog.prototype.open = function() {
			//var event= window.event || arguments.callee.caller.arguments[0]; 
			//var event = event || window.event; 
			//var event = getEvent();
			//alert(event) // ie 和 ff下，都显示 "[object]" 
			//var PosX = 0;
			//var PosY = 0;
			//if (event.pageX || event.pageY) {
			//	PosX = event.pageX;
			//	PosY = event.pageY;

		//	} else {
			//	PosX = event.clientX + document.body.scrollLeft
			//			- document.body.clientLeft;
		//	PosY = event.clientY + document.body.scrollTop
		//				- document.body.clientTop;
		//	}
		//	;
			this.options.position =[$(window).width()/2-300,200];
			//alert(this.options.position); 
			originOpen.apply(this, arguments);
		};

	/** 	function getEvent() { //同时兼容ie和ff的写法 
			if (document.all)
				return window.event;
			func = getEvent.caller;
			while (func != null) {
				var arg0 = func.arguments[0];
				if (arg0) {
					if ((arg0.constructor == Event || arg0.constructor == MouseEvent)
							|| (typeof (arg0) == "object"
									&& arg0.preventDefault && arg0.stopPropagation)) {
						return arg0;
					}
				}
				func = func.caller;
			}
			return null;
		} */
	})(jQuery);

	//--><!
</script>